package br.com.persist.core.command.parameter;

import br.com.persist.api.PersistentContext;
import br.com.persist.api.RuntimeExecutionException;
import br.com.persist.api.VolatileContext;

public class StaticObjectParameterExtractor implements ParameterExtractor {

	private Object staticObject;

	public StaticObjectParameterExtractor(Object staticObject) {
		super();
		this.staticObject = staticObject;
	}

	public Object getValue(VolatileContext volatileContext, PersistentContext persistentContext) throws RuntimeExecutionException {
		return staticObject;
	}
}
